<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>{{.Title}}</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="/public/adminlit/bower_components/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="/public/adminlit/bower_components/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/public/adminlit/bower_components/Ionicons/css/ionicons.min.css">
    <link rel="stylesheet" href="/public/adminlit/dist/css/AdminLTE.min.css">
    <link rel="stylesheet" href="/public/adminlit/dist/css/skins/skin-blue.min.css">
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <header class="main-header">

        <a href="#" class="logo">
            <span class="logo-mini"><b>A</b>LT</span>
            <span class="logo-lg"><b>Admin</b>LTE</span>
        </a>

        <nav class="navbar navbar-static-top">
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="{{.adminInfo.Headico}}" class="user-image" alt="User Image">
                            <span class="hidden-xs">{{.adminInfo.Account}}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header">
                                <img src="{{.adminInfo.Headico}}" class="img-circle" alt="User Image">

                                <p>
                                    {{.adminInfo.Descript}}
                                    <small>{{.adminInfo.Nickname}} 创建于:{{.adminInfo.CreatedAt}}</small>
                                </p>
                            </li>

                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="/system/update/password" class="btn btn-default btn-flat">密码修改</a>
                                </div>
                                <div class="pull-right">
                                    <a href="/login/logout" class="btn btn-default btn-flat">退出登录</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="/system/update/admin" ><i class="fa fa-gears"></i></a>
                    </li>
                </ul>
            </div>

        </nav>
    </header>
    <aside class="main-sidebar">
        <section class="sidebar">
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="{{.adminInfo.Headico}}" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p>{{.adminInfo.Account}}</p>
                    <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                </div>
            </div>
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header">MAIN NAVIGATION</li>
                <li class="">
                    <a href="/system/main">
                        <i class="fa fa-dashboard"></i>
                        <span>系统概况</span>
                    </a>
                </li>
                <li class="">
                    <a href="/administrators">
                        <i class="fa fa-users"></i>
                        <span>管理员</span>
                    </a>
                </li>
                <li class="treeview" >
                    <a href="#">
                        <i class="fa fa-laptop"></i>
                        <span>信息管理</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li class=""><a href="/categorys"><i class="fa fa-circle-o"></i> 分类管理</a></li>
                        <li><a href="/news"><i class="fa fa-circle-o"></i> 文章管理</a></li>
                    </ul>
                </li>
            </ul>
        </section>
    </aside>

    <div class="content-wrapper">
        <section class="content-header">
            <h1>
            {{.Title}}
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li class="active">{{.Title}}</li>
            </ol>
        </section>

        <section class="content">
            {{ yield }}
        </section>
    </div>

    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 2.4.0
        </div>
        <strong>Copyright &copy; 2014-2016 <a href="https://adminlte.io">Almsaeed Studio</a>.</strong> All rights
        reserved.
    </footer>

</div>

<script src="/public/adminlit/bower_components/jquery/dist/jquery.min.js"></script>
<script src="/public/adminlit/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="/public/adminlit/bower_components/fastclick/lib/fastclick.js"></script>
<script src="/public/adminlit/dist/js/adminlte.min.js"></script>
</body>
</html>
<script type = "text/javascript" >
    $(document).ready(function() {
        $('ul.treeview-menu>li').find('a[href="' + window.location.pathname + '"]').closest('li').addClass('active');
        $('ul.treeview-menu>li').find('a[href="' + window.location.pathname + '"]').closest('li.treeview').addClass('active');
        $('.sidebar-menu>li').find('a[href="' + window.location.pathname + '"]').closest('li').addClass('active');
    })
</script>